import {createElement, Element, render, renderDom} from './element'
import diff from './diff'
//import patch from './path'

let virtulDom = createElement('ul', {class: 'list'}, [
    createElement('li', {className: 'list-class'}, ['a']),
    createElement('li', {className: 'item'}, ['b']),
    createElement('li', {className: 'item'}, ['c']),
]);

let virtulDom1 = createElement('ul', {class: 'list2'}, [
    createElement('li', {className: 'class'}, ['a']),
    createElement('li', {className: 'item'}, ['1']),
    createElement('li', {className: 'item'}, ['c']),
]);

let el = render(virtulDom);
console.log('diff(virtulDom, virtulDom1)', diff(virtulDom, virtulDom1))
renderDom(el, window.root);
